package com.cjw.pojo.query.database;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author : cjw
 * @date: : 2022/3/11 20:14
 * @description : 修改资源DTO
 */
@ApiModel("修改资源DTO")
@Data
public class UpdateResourceDTO {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty("名称")
    @NotNull
    private String name;

    @ApiModelProperty("url")
    @NotNull
    private String url;

    @ApiModelProperty("vue文件路径")
    @NotNull
    private String src;

    @ApiModelProperty("图标")
    @NotNull
    private String icon;

    @ApiModelProperty("父节点")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long parentId;
}
